<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/offer.css') ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/category.css') ?>

<div class="clearfix breadcrumb-categories">
    Kategoria: 
    <?php if (isset($this->category['parent_category_code'])): ?>
        <a href="<?= $this->url(array('controller' => 'offer', 'action' => 'index', 'id' => $this->category['parent_category_code'], 'name' => $this->category['parent_category_name']), 'default', true) ?>"><?= $this->category['parent_category_name'] ?></a>
        <i class="icon-chevron-right"></i> 
    <?php endif; ?>
    <a href="<?= $this->url(array('controller' => 'offer', 'action' => 'index', 'id' => $this->category['category_code'], 'name' => $this->category['category_name']), 'default', true) ?>"><?= $this->category['category_name'] ?></a>
</div>

<div class="category_new_action">
    <?php
    $code = null;
    if ($this->category['parent_id'] > 0) {
        $code = $this->category['code'];
    }
    ?>
    <a class="btn btn-large btn-success" href="<?= $this->url(array('controller' => 'offer', 'action' => 'add', 'id' => $code), 'default', true) ?>">Dodaj swoje ogłoszenie</a>
    <span class="subtext">Dodawanie ogłoszeń nigdy nie było tak łatwe!</span>
</div>

<?= $this->render('offer/list.phtml') ?>
